package com.rf.richfitwheel.admin.sys.dao;

import com.rf.richfitwheel.admin.sys.model.SysMsgStream;
import com.rf.richfitwheel.admin.sys.model.SysMsgStreamExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface SysMsgStreamMapper {
    long countByExample(SysMsgStreamExample example);

    int deleteByExample(SysMsgStreamExample example);

    int deleteByPrimaryKey(String id);

    int insert(SysMsgStream record);

    int insertSelective(SysMsgStream record);

    List<SysMsgStream> selectByExample(SysMsgStreamExample example);

    SysMsgStream selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") SysMsgStream record, @Param("example") SysMsgStreamExample example);

    int updateByExample(@Param("record") SysMsgStream record, @Param("example") SysMsgStreamExample example);

    int updateByPrimaryKeySelective(SysMsgStream record);

    int updateByPrimaryKey(SysMsgStream record);

    int getUndealMsgNum(Map<String, Object> queryPra);

    int deal(String id);

    /**
     * 查询消息内容
     * @param queryPra
     * @return
     */
    List<Map<String, Object>> selectMsgStreamPages(Map<String, Object> queryPra );

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    SysMsgStream selectMapByPrimaryKey(String id);
}